package com.seadragon.app.dms.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.seadragon.app.dms.dao.DriverDao;
import com.seadragon.app.dms.model.Driver;
import com.seadragon.app.dms.service.DriverService;

@Repository
@Transactional
public class DriverServiceImpl implements DriverService {
	@Autowired
	private DriverDao driverDao;
	@Override
	public void save(Driver driver) {
		driverDao.save(driver);
	}
	@Override
	public Driver findById(long id){
		return driverDao.findById(id);
	}

}
